<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.faceted.search.jsf.pageproviders.override">

  <require>org.nuxeo.ecm.platform.faceted.search.jsf.pageproviders</require>

  <extension point="providers" target="org.nuxeo.ecm.platform.query.api.PageProviderService">

      <coreQueryPageProvider name="USER_SAVED_SEARCHES">
        <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
        <pattern>
          SELECT * FROM FacetedSearch WHERE dc:creator = ? AND
          ecm:currentLifeCycleState != 'deleted'
        </pattern>
        <sort ascending="true" column="dc:title"/>
      </coreQueryPageProvider>

      <coreQueryPageProvider name="OTHER_USERS_SAVED_SEARCHES">
        <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
        <pattern>
          SELECT * FROM FacetedSearch WHERE dc:creator != ? AND
          ecm:currentLifeCycleState != 'deleted'
        </pattern>
        <sort ascending="true" column="dc:title"/>
      </coreQueryPageProvider>

  </extension>

</component>
